package com.epfresh.supplier.entity;

public class CertInfo {



    /*{
        "idCardObverseImgUrl": "http://7xpf2j.com2.z0.glb.qiniucdn.com/2017%2F2%2F28%2Fa901babd0d6c4f63902806a26524c7b6.jpg",
            "idCardNo": "320921199010113321",
            "accountId": 37,
            "traceCardNo": null,
            "remark": "1",
            "status": 1,
            "name": "李金娣",
            "idCardWithPersonImgUrl": "http://7xpf2j.com2.z0.glb.qiniucdn.com/2017%2F2%2F28%2Fe12f6dc2db684ab4a7f4e7af17193574.jpg",
            "type": 1,
            "idCardReverseImgUrl": "http://7xpf2j.com2.z0.glb.qiniucdn.com/2017%2F2%2F28%2F0a9f5765a5e445108c5c379d1d534158.jpg"
    }
    {
        "accountId": 30,
            "status": 0,
            "remark": "admin提交了企业认证信息",
            "legalPersonPhone": "1234567",
            "type": 2,
            "legalPersonName": "tableView",
            "licenceNo": "tableView",
            "address": null,
            "orgCodeImgId": 13260,
            "name": "tableViewtableView",
            "licenceImgId": 13259,
            "orgCodeImgUrl": "http://7xpf2j.com2.z0.glb.qiniucdn.com/2017%2F4%2F6%2F1491469878372_%E5%B1%8F%E5%B9%95%E5%BF%AB%E7%85%A72017-04-06%E4%B8%8B%E5%8D%885.10.50.png",
            "licenceImgIdUrl": "http://7xpf2j.com2.z0.glb.qiniucdn.com/2017%2F4%2F6%2F1491469869741_%E5%B1%8F%E5%B9%95%E5%BF%AB%E7%85%A72017-04-05%E4%B8%8B%E5%8D%8812.33.27.png"
    }*/
    private String idCardWithPersonImgUrl;
    private int accountId;
    private String idCardNo;
    private String traceCardNo;
    private String name;
    private String idCardReverseImgUrl;
    private String remark;

    private String idCardObverseImgUrl;
    //0,审核中;1,审核通过;2,审核不通过;-1，未提交审核
    private String status;
    private String idCardReverseImgId;
    private String idCardWithPersonImgId;
    private String idCardObverseImgId;




    private String legalPersonPhone;
    private String legalPersonName;
    private String licenceNo;
    private String address;
    private String orgCodeImgId;

    private String licenceImgId;
    private String orgCodeImgUrl;
    private String licenceImgIdUrl;
    private String merchantId;
    private boolean success;
    //0个人,1,企业
    private String type;

    public String getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(String merchantId) {
        this.merchantId = merchantId;
    }

    public String getIdCardReverseImgId() {
        return idCardReverseImgId;
    }

    public void setIdCardReverseImgId(String idCardReverseImgId) {
        this.idCardReverseImgId = idCardReverseImgId;
    }

    public String getIdCardWithPersonImgId() {
        return idCardWithPersonImgId;
    }

    public void setIdCardWithPersonImgId(String idCardWithPersonImgId) {
        this.idCardWithPersonImgId = idCardWithPersonImgId;
    }

    public String getIdCardObverseImgId() {
        return idCardObverseImgId;
    }

    public void setIdCardObverseImgId(String idCardObverseImgId) {
        this.idCardObverseImgId = idCardObverseImgId;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getLegalPersonPhone() {
        return legalPersonPhone;
    }

    public void setLegalPersonPhone(String legalPersonPhone) {
        this.legalPersonPhone = legalPersonPhone;
    }

    public String getLegalPersonName() {
        return legalPersonName;
    }

    public void setLegalPersonName(String legalPersonName) {
        this.legalPersonName = legalPersonName;
    }

    public String getLicenceNo() {
        return licenceNo;
    }

    public void setLicenceNo(String licenceNo) {
        this.licenceNo = licenceNo;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getOrgCodeImgId() {
        return orgCodeImgId;
    }

    public void setOrgCodeImgId(String orgCodeImgId) {
        this.orgCodeImgId = orgCodeImgId;
    }

    public String getLicenceImgId() {
        return licenceImgId;
    }

    public void setLicenceImgId(String licenceImgId) {
        this.licenceImgId = licenceImgId;
    }

    public String getOrgCodeImgUrl() {
        return orgCodeImgUrl;
    }

    public void setOrgCodeImgUrl(String orgCodeImgUrl) {
        this.orgCodeImgUrl = orgCodeImgUrl;
    }

    public String getLicenceImgIdUrl() {
        return licenceImgIdUrl;
    }

    public void setLicenceImgIdUrl(String licenceImgIdUrl) {
        this.licenceImgIdUrl = licenceImgIdUrl;
    }

    public String getIdCardWithPersonImgUrl() {
        return this.idCardWithPersonImgUrl;
    }

    public void setIdCardWithPersonImgUrl(String idCardWithPersonImgUrl) {
        this.idCardWithPersonImgUrl = idCardWithPersonImgUrl;
    }

    public int getAccountId() {
        return this.accountId;
    }

    public void setAccountId(int accountId) {
        this.accountId = accountId;
    }

    public String getIdCardNo() {
        return this.idCardNo;
    }

    public void setIdCardNo(String idCardNo) {
        this.idCardNo = idCardNo;
    }

    public String getTraceCardNo() {
        return this.traceCardNo;
    }

    public void setTraceCardNo(String traceCardNo) {
        this.traceCardNo = traceCardNo;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIdCardReverseImgUrl() {
        return this.idCardReverseImgUrl;
    }

    public void setIdCardReverseImgUrl(String idCardReverseImgUrl) {
        this.idCardReverseImgUrl = idCardReverseImgUrl;
    }

    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }



    public String getIdCardObverseImgUrl() {
        return this.idCardObverseImgUrl;
    }

    public void setIdCardObverseImgUrl(String idCardObverseImgUrl) {
        this.idCardObverseImgUrl = idCardObverseImgUrl;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public boolean hasCert(){
        if (type == null || "".equals(type)){
            return false;
        }
        return true;
    }

    public boolean isPersonalCert(){

        if ("0".equals(type)){
            return true;
        }
        return false;
    }

    //是否是提交审核，true，直接跳银行卡
    public boolean isPostCert(){
        if (status != null && !"-1".equals(status)){
            return true;
        }
        return false;
    }


}
